package com.zhang.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.zhang.domain.Department;
import com.zhang.domain.DepartmentVO;
import com.zhang.mapper.DepartmentMapper;
import com.zhang.query.DepartmentQuery;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zh
 * @create 2022-02-21 13:58
 */
public interface IDepartmentService {
    //基础查询
    void add(DepartmentVO d);

    void update(DepartmentVO d);

    void delete(Long id);

    Department selectById(Long id);

    List<Department> selectAll();

    PageInfo<Department> selectData(DepartmentQuery query);

    Long queryEmpId(String managerName);

    Long queryDeptId(String parentName);

    void deleteAll(Long[] id);

    List<String> selAllMan();
}
